package com.example.portdemo.base;
import androidx.room.Database;
import androidx.room.RoomDatabase;

import com.example.portdemo.date.dao.FinanceDao;
import com.example.portdemo.date.dao.MovieDao;
import com.example.portdemo.date.dao.NewsDao;
import com.example.portdemo.date.dao.ProductDao;
import com.example.portdemo.date.model.FinanceEntity;
import com.example.portdemo.date.model.MovieEntity;
import com.example.portdemo.date.model.NewsEntity;
import com.example.portdemo.date.model.ProductEntity;

@Database(entities = {NewsEntity.class, FinanceEntity.class, ProductEntity.class, MovieEntity.class}, version = 1)
public abstract class AppDatabase extends RoomDatabase {
    public abstract NewsDao newsDao();
    public abstract FinanceDao financeDao();
    public abstract ProductDao productDao();
    public abstract MovieDao movieDao();
}